package com.dly.blog.domain.vo.content;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@Schema(name = "ContentVO", description = "文章返回对象")
public class ContentShowVO {

    @Schema(description = "文章id")
    private String id;

    @Schema(description = "标题")
    private String title;

    @Schema(description = "标签")
    private String label;

    @Schema(description = "摘要")
    private String summary;

    @Schema(description = "封面")
    private String cover;

    @Schema(description = "作者")
    private String createName;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String createTime;

    @Schema(description = "点赞量")
    private Integer supportNum;

    @Schema(description = "收藏量")
    private Integer favoriteNum;

    @Schema(description = "阅读量")
    private Integer readNum;

    @Schema(description = "是否点赞")
    private boolean isSupport;

    @Schema(description = "是否收藏")
    private boolean isFavorite;
}
